FROM scratch
# 添加镜像文件
ADD build/centos-5.11-20150304_1234-docker.tar.xz /

# 删除旧源
RUN cd /etc/yum.repos.d/ && \
    rm -rf *.repo && \
    sed -i "s|enabled=1|enabled=0|g" /etc/yum/pluginconf.d/fastestmirror.conf
# 添加源
ADD build/CentOS-Base.repo /etc/yum.repos.d/

# 更新Repo
RUN yum clean all && yum update -y && yum install -y openssl openssl-devel curl wget perl vim && yum clean all

# 切换工作目录
WORKDIR /root